<table class="CSSTableGenerator">
   <tr>
       <td>Name</td>
       <td>Name EN</td>
       
       <td>Edit</td>
       <td>Delete</td>
   </tr>
<?php
    $categories = $this->categories;

    if(isset($categories)){
        foreach ($categories as $item ){
            echo "<tr>";    

            echo "<td>".$item['name']."</td>";
            echo "<td>".$item['name_en']."</td>";
            
            echo "<td><a class='edit-item' href ='".$this->baseUrl."/".$this->module."/category/edit/id/".$item['id']."'>EDIT<a/></td>";
            echo "<td><a class='del-item' href ='".$this->baseUrl."/".$this->module."/category/del/id/".$item['id']."'>DELETE<a/></td>";
            echo "</tr>";
        }
    }
 ?>

       <tr>
                <td colspan="4">
                <?php echo  $this->paginationControl($this->categories, 'Sliding', 'index/paging.phtml'); ?>
                </td>
        </tr>
</table>